<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-content">
                <form id="userForm" class="form-horizontal m-t">
                    <input id="organizationId" name="organizationId" class="form-control" type="hidden">
                    <div class="form-group">
                        <label class="col-sm-1 control-label" for="dictType">字典类型:</label>
                        <div class="col-sm-2">
                            <select id="dictType" name="dictType" class="form-control">
                                <option th:each="item:${dictList}"
                                        th:value="${item.dictType}"
                                        th:text="${item.dictName}"
                                        th:field="*{dict.dictType}"></option>
                            </select>
                        </div>
                        <label class="col-sm-1 control-label" for="dictName">字典名称:</label>
                        <div class="col-sm-2">
                            <input id="dictName" name="dictName" class="form-control" type="text">
                        </div>
                        <div class="col-sm-2">
                            <button type="button" id="serachBtn" class="btn btn-success"
                                    onclick="reLoad()">
                                <i class="fa fa-search" aria-hidden="true"></i>查询
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div class="ibox">
            <div class="ibox-content">
                <div class="fixed-table-toolbar">
                    <div class="columns pull-left">
                        <button shiro:hasPermission="system:upmsSystem:add" type="button" class="btn  btn-primary"
                                onclick="add()">
                            <i class="fa fa-plus" aria-hidden="true"></i>添加
                        </button>
                        <button shiro:hasPermission="system:upmsSystem:remove" type="button"
                                class="btn  btn-danger"
                                onclick="batchRemove()">
                            <i class="fa fa-trash" aria-hidden="true"></i>删除
                        </button>
                        <button type="button" class="btn  btn-warning" onclick="goBack()">
                            <i class="fa fa-reply-all" aria-hidden="true"></i>返回
                        </button>
                    </div>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>

<div>
    <script>
        var s_edit_h = 'hidden';
        var s_remove_h = 'hidden';
    </script>
</div>
<div shiro:hasPermission="system:upmsDictData:edit">
    <script type="text/javascript">
        s_edit_h = '';

    </script>
</div>
<div shiro:hasPermission="system:upmsDictData:remove">
    <script type="text/javascript">
        var s_remove_h = '';

    </script>
</div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/js/appjs/system/upmsDictData/upmsDictData.js"></script>
</body>
</html>